package com.scatteredServer.client;

import com.scatteredServer.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * 调用教师状态远程接口
 * */
@FeignClient(value = "TeacherInfoServer",path = "/s1/stats")
public interface TeacherStatsClient {

    @GetMapping("/teacherStats")
    Result<List<Map<String,Object>>> teacherStats(@RequestParam("typename") String typename);

}
